package com.example.electricbicycle.service;

import com.example.electricbicycle.po.User;
import java.util.List;
import java.util.Map;

public interface UserService {
    User login(String username, String password);
    List<User> getAllUsers();
    List<User> getAllUsers(int currentPage, int pageSize); // 分页方法
    int getUserCount(); // 获取总数方法
    User getUserById(int id);
    boolean addUser(User user);
    boolean updateUser(User user);
    boolean deleteUser(int id);
    boolean changePassword(int userId, String oldPassword, String newPassword);
    List<User> searchUsers(String keyword, int currentPage, int pageSize);
    int getUserCount(String keyword);

    List<User> complexQuery(Map<String, Object> params, int start, int count);

    int getTotal(Map<String, Object> params);

    int getWarehouseCount();

    int getSalesCount();

    int getAdminCount();

    int getSalesAdminCount();

    int getAfterSalesCount();
}